package com.wzdigit.wms.wms.mapper.inv.count;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.wms.client.response.inv.count.CountAprResultResponse;
import com.wzdigit.wms.wms.client.response.inv.count.CountDifDtlResponse;
import com.wzdigit.wms.wms.domain.inv.count.InvCountDif;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-10-08
 */

@MyBatisRepository
public interface InvCountDifMapper extends BaseMapper<InvCountDif> {
    //盘点差异报表
    List<CountDifDtlResponse> selectByHedeerId(@Param("headerId") BigDecimal headerId);

    //查询盘点结果审核下盘点差异
    List<CountAprResultResponse> selectAprResultDif(@Param("headerId") BigDecimal headerId);

    int updateAdjResult(@Param("loginName") String loginName,
                        @Param("adjResult") Integer adjResult,
                        @Param("difIds") List<BigDecimal> difIds,
                        @Param("status") Integer status);

    //

}
